﻿using IGS.Core.Systems;

namespace IGS.Core.Evaluators
{
    public class PairwiseForceEvaluator : IForceEvaluator
    {
        public void Evaluate(INBodySystem system)
        {
            for (var i = 0; i < system.Length; i++)
                for (var j = i + 1; j < system.Length; j++)
                    system[i].Pairwise(system[j]);
        }
    }
}